package py.com.alfa.escriba.web.services;

import py.com.alfa.escriba.exception.ServiceException;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import py.com.alfa.escriba.persistence.dto.InmuebleslinderosDTO;
import py.com.alfa.escriba.web.interceptor.InvocationContext;

public interface InmuebleslinderosService {
  List<InmuebleslinderosDTO> listInmuebleslinderos(InvocationContext ic) throws ServiceException;
  InmuebleslinderosDTO getInmuebleslinderos(Long id, InvocationContext ic) throws ServiceException;
  void deleteInmuebleslinderos(Long id, InvocationContext ic) throws ServiceException;
  @Transactional(value="transactionManager", rollbackFor={ServiceException.class},propagation=Propagation.REQUIRED)
  InmuebleslinderosDTO updateInmuebleslinderos(Long id, InmuebleslinderosDTO dto, InvocationContext ic) throws ServiceException;
  @Transactional(value="transactionManager", rollbackFor={ServiceException.class},propagation=Propagation.REQUIRED)
  InmuebleslinderosDTO createInmuebleslinderos(InmuebleslinderosDTO dto, InvocationContext ic) throws ServiceException;
}